const {findBannerDao} = require("../dao/bannerDao");
const {handleDataPattern} = require("../utils/tool");
const {updateBannerDao} = require("../dao/bannerDao");

module.exports.findBannerService = async function(){
    const result = await findBannerDao()
    return handleDataPattern(result)
}
module.exports.updateBannerService = async function(id, data){
    return await updateBannerDao(id, data)
}